Skip to content

Conversation

@smoelius
Copy link
Contributor

I recently got a map-unwrap-or warning with no suggestion, and was very confused because I couldn't tell what the lint was flagging.

It turned out the "else" part had multiple lines, so the lint decided not to include a suggestion.

Please look at this PR's stderr file, and decide whether you like it. Then look at its predecessor, and decide whether you like it.

IMHO, the one with the suggestions is much more informative, even if not as pretty.

changelog: Allow multiline suggestions in map-unwrap-or

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Nov 18, 2025
@rustbot
Copy link
Collaborator

rustbot commented Nov 18, 2025

r? @llogiq

rustbot has assigned @llogiq.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@github-actions
Copy link

Lintcheck changes for d707ec1

Lint Added Removed Changed
clippy::map_unwrap_or 0 0 13

This comment will be updated if you push new changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants